package com.nengchuan.kbms.dfs.entity.dto;

import com.nengchuan.kbms.dfs.annotation.Relation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 * 分享 DTO
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DataShareDTO 对象", description = "分享")
@ToString
public class DataShareDTO {

    @NotNull(message = "分享的文件夹id为空")
    @ApiModelProperty(value = "分享的文件（夹）id", position = 10)
    @Relation
    private Long bizId;

    @NotBlank
    @Size(max = 10, message = "分享类型字段长度不大于10个字符")
    @ApiModelProperty(value = "分享类型（d：文件；f文件夹）", position = 20)
    @Relation
    private String bizType;

    @NotNull
    @ApiModelProperty(value = "分享开始时间")
    private Long shareBeginTime;

    @NotNull
    @ApiModelProperty(value = "分享结束时间")
    private Long shareEndTime;

    @Size(max = 10, message = "留言字段长度不大于2000个字符")
    @ApiModelProperty(value = "留言", position = 30)
    private String message;

    @NotNull
    @ApiModelProperty(value = "分享用户id", position = 30)
    private List<Long> receiveUserIdList;

}
